void npc(Player @player, NPC @npc) {
   int state = npc.getState();
   if(state == 0){
      if(player.getItemAmount(4001020) == 0){
         npc.addText("There's a rock that will enable you to teleport to #bSecond Eos Rock#k, but it cannot be activated without the scroll.");
         npc.sendOK();
         npc.end();
      }
      else{
         npc.addText("You can use #bEos Rock Scroll#k to activate #bFirst Eos Rock#k. Will you teleport to #bSecond Eos Rock#k at the 71st floor?");
         npc.sendYesNo();
      }
   }
   if(state == 1){
      if(npc.getSelected() == YES){
        player.giveItem(4001020, -1);
        player.changeMap(221022900);
     }
	 npc.end();
   }
}